package io.renren.modules.sys.runner;

import io.renren.modules.sys.controller.SysDictController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * springboot启动后执行
 */
@Component
public class Runner implements CommandLineRunner {
    @Autowired
    private SysDictController sysDictController;
    @Override
    public void run(String... args) {
        System.out.println("redis初始化字典信息-开始...");
        sysDictController.pushDictAllData();
        System.out.println("redis初始化字典信息-完成...");
    }
}